package main

import "fmt"

func main() {
	arr:=[...]int{0,1,2,3,4,5,6,7}
	fmt.Println(arr)
	s1:=arr[2:6]
	fmt.Printf("s1:=%v len:%d cap=%d \n" ,s1,len(s1),cap(s1))
	s2:=s1[4:6]
	fmt.Printf("s2:=%v len:%d cap=%d \n",s2,len(s2),cap(s2))

	s3:=append(s2,10,1,1,2,1,21)
	fmt.Printf("s3:=%v len:%d cap=%d \n",s3,len(s3),cap(s3))
	fmt.Println("s3=",s3)
}
